﻿@{
    ViewBag.Title = "材料采购合同登记";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<link href="~/Content/css/ConsignmentLegter_print.css" rel="stylesheet" media="print" />
<style type="text/css">
    .print {
        display: none;
    }

    .tool_c {
        padding: 10px 0;
    }

    .btn-group {
        padding: 0 10px 0 0;
    }


    .grid_list_1_c table tr[id] td:nth-child(2) a {
        margin: 0 0.5em 0 0;
    }


    .btn-group:last-child a.btn:first-child {
        margin: 0 0.5em 0 0 !important;
    }

    .input_inline input {
        display: inline-block;
        width: 4em;
    }

    .date_area input {
        display: inline-block;
        width: 8em !important;
        margin: 0 0.2em;
    }


    .btn-group input[type=text] {
        height: 2em !important;
    }
</style>
<script>
    $(function () {
        Index.init();
    });

    var Index = {
        printTemplate: null,
        titlies: "{0}合同登记,{0}合同档案".split(","),
        curUnit: '@ViewData["curUnit"].ToString()',
        curUserName: '@ViewData["curUserName"].ToString()',
        curDate: '@ViewData["curDate"].ToString()',
        curTime: '@ViewData["curTime"].ToString()',
        dataList: {
            "01": null,
            "02": null
        },
        printItemTemplate: "",
        init: function () {
            with (Index) {
                printItemTemplate = $("#print1 .page").html();

                initControl();

                loadDataList();
            }
        },
        initControl: function () {
            $.renderMy97Datepicker();

            $("[date-control]").val(Index.defaultDate);

            $("[date-control]").on("click", function () {
                WdatePicker({ dateFmt: 'yyyyMM', minDate: '2000-1', maxDate: '2050-12' });
            });

            $('select').bindSelect();
            //产地
            $("#CGCD1").bindSelect({
                url: "/Purchase/MaterialPurchase/GetFProductionTypies?FClassNO=40",
                id: "FTypeNO",
                text: "FTypeNOName"
            });
            //到站
            $("#CGDZ1").bindSelect({
                url: "/Purchase/MaterialPurchase/GetFProductionTypies?FClassNO=39",
                id: "FTypeNO",
                text: "FTypeNOName"
            });
            //采购分类
            $("#CGCGFL1").bindSelect({
                url: "/Purchase/MaterialPurchase/GetFProductionTypies?FClassNO=38",
                id: "FTypeNO",
                text: "FTypeNOName"
            });
            //采购方式
            $("#CGCGFS1").bindSelect({
                url: "/Purchase/MaterialPurchase/GetFProductionTypies?FClassNO=37",
                id: "FTypeNO",
                text: "FTypeNOName"
            });
            //用途
            $("#CGYT1").bindSelect({
                url: "/Purchase/MaterialPurchase/GetFProductionTypies?FClassNO=41",
                id: "FTypeNO",
                text: "FTypeNOName"
            });
            //供货单位
            $("#CGGHDW1").bindSelect({
                url: "/Purchase/MaterialPurchase/GetSupplierInformationies?idx=0",
                id: "UnitNO",
                text: "UnitNOName"
            });
            //分流
            $("#CGCGFLiu1").bindSelect({
                url: "/Purchase/MaterialPurchase/GetSupplierInformationies?idx=1",
                id: "UnitNO",
                text: "UnitNOName"
            });

            var show1s = {
                "合同登记": "i11,i12,i13,i14,i15,i16,i17,i18,i19,i110,i111,i113,i115,i116,i117,i118".split(","),
                "合同档案": "i11,i12,i13,i14,i15,i16,i17,i18,i19,i110,i111,i114".split(",")
            };

            $("[name=ra1]").on("click", function () {
                var showCur = show1s[$(this).val()];

                $(".i1").hide(0);

                showCur.forEach(function (cur) {
                    $(".{0}".format(cur)).show(0);
                });
            });
            $("[name=ra1]:first").trigger("click");
            //批次查询 btn_search1
            $("#btn_search1").on("click", function () {
                var conn1 = $.buildPostParam("CGCD,CGDZ,CGCGFL,CGCGFS,CGYT,CGGHDW,CGCGFLiu", "1");

                var val = $("[name=ra1]:checked").val();

                "合同登记" == val && (function () {
                    var $gridList11 = $("#gridList11");

                    $gridList11.jqGrid('setGridParam', {
                        postData: conn1,
                    }).trigger('reloadGrid');
                })();

                "合同档案" == val && (function () {
                    var $gridList12 = $("#gridList12");

                    $gridList12.jqGrid('setGridParam', {
                        postData: conn1,
                    }).trigger('reloadGrid');
                })();
            });
            //导出
            $("#butnExport1").on("click", function () {
                var val = $("[name=ra1]:checked").val();

                var param = { id: "", param: null };

                "合同登记" == val && (function () {
                    param.id = "V_JSK_22_CS_CWHZDZB";
                })();

                "合同档案" == val && (function () {
                    param.id = "V_JSK_22_CS_CWHZDZB2";
                })();

                var url = "/Common/ExcelExportById?{0}".format($.param(param));

                location.href = url;
            });
            //新增
            $("#butnInput1").on("click", function () {
                $.modalOpen({
                    url: "/Purchase/MaterialPurchase/ContractRegistrationAdd",
                    width: "720px",
                    height: "480px",
                    title: "材料采购合同登记-新增",
                    close: true,
                    btn: ["确定", "关闭"],
                    id: "dlgContractRegistrationAdd",
                    callBack: function (id, isCancel) {
                        !isCancel && (function () {
                            var cols = "ID,CLFL,CGHTRQ,CGHTBH,CGCLPH,CGCGFS,CGCLBZBH,CGCLTSYQ,CGCGFL,CGDZ,CGCD,CGLX,CGGHDW,CGYT,CGDHSL,CGCGDJ,CGDZDJ,CGBHSM".split(",");

                            var rowData = {};

                            var cc = parent.parent.$("#{0}".format(id)).find("iframe").contents();

                            cols.forEach(function (item) {
                                rowData[item] = cc.find("#{0}".format(item)).val();
                            });
                            
                            var cs = "CGCLGG_T,CGCLGG_H,CGCLGG_W".split(","), CGCLGG = [];
                            
                            cs.forEach(function (c) {
                                CGCLGG.push(cc.find("#{0}".format(c)).val());
                            });
                            
                            rowData["CGCLGG"] = CGCLGG.join("x");

                            $.post("/Purchase/MaterialPurchase/AddContractRegistration",
                                { postData: JSON.stringify(rowData) }, function (res) {
                                    0 < res && (function () {
                                        $.modalAlert("添加成功！", "success");

                                        $("#btn_search1").trigger("click");
                                    })();
                                }, "json");
                        })();
                    }
                });
            });
            //修改
            $("#butnEdit1").on("click", function () {
                var cols = "ID,CLFL,CGHTRQ,CGHTBH,CGCLPH,CGCLGG,CGCGFS,CGCLBZBH,CGCLTSYQ,CGCGFL,CGDZ,CGCD,CGLX,CGGHDW,CGYT,CGDHSL,CGCGDJ,CGDZDJ,CGBHSM".split(",");

                var val = $("[name=ra1]:checked").val();

                var num = 0, idx = "00";

                "合同登记" == val && (function () {
                    num = $("#gridList11").jqGrid("getGridParam", "selrow");

                    idx = "01";
                })();

                "合同档案" == val && (function () {
                    num = $("#gridList12").jqGrid("getGridParam", "selrow");

                    idx = "02";
                })();

                !!num || $.modalAlert("请先选择要修改的数据");

                !!num && (function () {
                    var param = {};

                    cols.forEach(function (col) {
                        col in Index.dataList[idx][num - 1] && (param[col] = Index.dataList[idx][num - 1][col]);
                    })

                    var postData = { postData: JSON.stringify(param) };

                    var url = "/Purchase/MaterialPurchase/ContractRegistrationAdd?{0}".format($.param(postData));

                    $.modalOpen({
                        url: url,
                        width: "720px",
                        height: "480px",
                        title: "材料采购合同登记-编辑",
                        close: true,
                        btn: ["确定", "关闭"],
                        id: "dlgContractRegistrationAdd",
                        callBack: function (id, isCancel) {
                            !isCancel && (function () {
                                var rowData = {};

                                var cc = parent.parent.$("#{0}".format(id)).find("iframe").contents();

                                cols.forEach(function (item) {
                                    rowData[item] = cc.find("#{0}".format(item)).val();
                                });

                                var cs = "CGCLGG_T,CGCLGG_H,CGCLGG_W".split(","), CGCLGG = [];

                                cs.forEach(function (c) {
                                    CGCLGG.push($("#{0}".format(c)).val());
                                });

                                rowData["CGCLGG"] = CGCLGG.join("x");
                                //console.log(rowData);
                                $.post("/Purchase/MaterialPurchase/AddContractRegistration",
                                    { postData: JSON.stringify(rowData) }, function (res) {
                                        0 < res && (function () {
                                            $.modalAlert("修改成功！", "success");

                                            $("#btn_search1").trigger("click");
                                        })();
                                    }, "json");
                            })();
                        }
                    });
                })();
            });
            //导入
            $("#butnImport1").on("click", function () {
                $.modalOpen({
                    url: "/Purchase/MaterialPurchase/ContractRegistrationImport",
                    width: "640px",
                    height: "240px",
                    title: "材料采购合同导入",
                    close: true,
                    btn: ["确定", "关闭"],
                    id: "dlgContractRegistrationAdd",
                    callBack: function (id, isCancel) {
                        !isCancel && (function () {
                            var cols = "HTRQ,FILECONTENT".split(",");

                            var rowData = {};

                            var cc = parent.parent.$("#{0}".format(id)).find("iframe").contents();

                            cols.forEach(function (item) {
                                rowData[item] = cc.find("#{0}".format(item)).val();
                            });

                            $.post("/Purchase/MaterialPurchase/ImportContractRegistration",
                                   { postData: JSON.stringify(rowData) }, function (res) {
                                       0 < res && (function () {
                                           $.modalAlert("导入成功！", "success");

                                           $("#btn_search1").trigger("click");
                                       })();
                                   }, "json");
                        })();
                    }
                });
            });
            //删除
            $("#butnDelete1").on("click", function () {
                var selecteds = $("#gridList11 input[type=checkbox]:checked").toArray(), ids = [];

                selecteds.forEach(function (selected) {
                    ids.push($(selected).val());
                });
                //console.log(ids.join(","));
                $.modalConfirm("是否确定删除选中记录？", function (foo) {
                    foo && (function () {
                        $.post("/Purchase/MaterialPurchase/DeleteContractRegistration", { ids: ids.join(",") }, function (res) {
                            0 < parseInt(res, 10) && (function () {
                                $("#btn_search1").trigger("click");
                            })();
                        });
                    })();
                }, true);
            });
            //发布
            $("#butnPublish1").on("click", function () {
                var selecteds = $("#gridList11 input[type=checkbox]:checked").toArray(), ids = [];

                selecteds.forEach(function (selected) {
                    ids.push($(selected).val());
                });
                //console.log(ids.join(","));
                $.modalConfirm("是否对当前选中单据进行发布？", function (foo) {
                    foo && (function () {
                        $.post("/Purchase/MaterialPurchase/PublishContractRegistration", { ids: ids.join(",") }, function (res) {
                            0 < parseInt(res, 10) && (function () {
                                $("#btn_search1").trigger("click");
                            })();
                        });
                    })();
                }, true);
            });
            //导出
            $("#butnExport1").on("click", function () {
                var val = $("[name=ra1]:checked").val();

                var param = {
                    id: "", param: Index.buildExportConn("CGCD,CGDZ,CGCGFL,CGCGFS,CGYT,CGGHDW,CGCGFLiu".split(","), "1")
                };

                "合同登记" == val && (function () {
                    param.id = "V_MCG_11_HT_MaterialPurchaseDJ";
                })();


                "合同档案" == val && (function () {
                    param.id = "V_MCG_11_HT_MaterialPurchaseDJ_DA";
                })();

                var url = "/Common/ExcelExportById?{0}".format($.param(param));

                location.href = url;
            });
        },
        buildExportConn: function (params, num) {
            var conn = "";

            !num && (num = "");

            params.forEach(function (item) {
                var val = $("#{0}{1}".format(item, num)).val();

                !!val && (conn += ("and {0} = '{1}'".format(item, val)));
            });

            return conn;
        },
        loadDataList: function () {
            var onSelectedFormat = function (cellvalue, options, rowObject) {
                var vals = cellvalue.split("|"),status = "";

                "1" == vals[1]  && (status="disabled");

                return "<input type=\"checkbox\" {1} value=\"{0}\"/>".format(vals[0], status);
            };

            var conn1 = $.buildPostParam("CGCD,CGDZ,CGCGFL,CGCGFS,CGYT,CGGHDW,CGCGFLiu", "1");

            var $gridList11 = $("#gridList11");

            $gridList11.dataGridForJson({
                url: "/Purchase/MaterialPurchase/GetContractRegistrationsAdd",
                postData: conn1,
                height: $(window).height() - 240,
                colModel: [
                { label: '选择', name: 'IDCGWHZT', width: 40, align: 'left', sortable: false, formatter: onSelectedFormat },
                { label: '合同日期', name: 'CGHTRQ', width: 80, align: 'left', sortable: false },
                { label: '流向编码（隐藏）', name: 'CGLX', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '材料分类编码（隐藏）', name: 'CLFL', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '材料分类', name: 'CLFLMC', width: 60, align: 'left', sortable: false },
                { label: '材料牌号', name: 'CGCLPH', width: 100, align: 'left', sortable: false },
                { label: '材料规格(mm)', name: 'CGCLGG', width: 120, align: 'left', sortable: false },
                { label: '产地编码（隐藏）	', name: 'CGCD', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '产地', name: 'CGCDMC', width: 40, align: 'center', sortable: false },
                { label: '供应商编码（隐藏）', name: 'CGGHDW', width: 80, align: 'left', sortable: false, hidden: true },
                { label: '供应商', name: 'CGGHDWMC', width: 120, align: 'left', sortable: false },
                { label: '到站编码(隐藏)', name: 'CGDZ', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '到站', name: 'CGDZMC', width: 40, align: 'center', sortable: false },
                { label: '采购方式(隐藏)', name: 'CGCGFS', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '采购<br/>方式', name: 'CGCGFSMC', width: 40, align: 'left', sortable: false },
                { label: '采购分类(隐藏)', name: 'CGCGFL', width: 60, align: 'center', sortable: false, hidden: true },
                { label: '采购<br/>分类', name: 'CGCGFLMC', width: 40, align: 'left', sortable: false },
                { label: '分流编码隐藏()', name: 'CGLX', width: 60, align: 'center', sortable: false, hidden: true },
                { label: '分流', name: 'CGLXMC', width: 40, align: 'center', sortable: false },
                { label: '用途编码（隐藏）', name: 'CGYT', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '用途', name: 'CGYTMC', width: 100, align: 'left', sortable: false },
                { label: '合同编号', name: 'CGHTBH', width: 120, align: 'left', sortable: false },
                { label: '订货<br/>数量', name: 'CGDHSL', width: 60, align: 'right', sortable: false },
                { label: '采购<br/>单价', name: 'CGCGDJ', width: 60, align: 'right', sortable: false, formatter: 'number' },
                { label: '到站<br/>单价', name: 'CGDZDJ', width: 60, align: 'right', sortable: false, formatter: 'number' },
                { label: '标准编号', name: 'CGCLBZBH', width: 120, align: 'left', sortable: false },
                { label: '特殊要求', name: 'CGCLTSYQ', width: 120, align: 'left', sortable: false },
                { label: '备注', name: 'CGBHSM', width: 160, align: 'left', sortable: false },
                { label: '维护<br/>状态', name: 'CGWHZT', width: 80, align: 'center', sortable: false },
                { label: '登记<br/>人员', name: 'CGDJRY', width: 60, align: 'center', sortable: false },
                { label: '登记<br/>日期', name: 'CGDJRQ', width: 60, align: 'center', sortable: false },
                { label: '登记<br/>时间', name: 'CGDJSJ', width: 60, align: 'center', sortable: false }
                ],
                pager: "#gridPager11",
                sortname: 'UseUnit,CGHTRQ,CGHTBH,CGCLPH',
                sortorder: "asc,DESC,asc,asc",
                viewrecords: true,
                rownumWidth: 50,
                onSelectRow: function (rowId) {

                },
                loadComplete: function (data) {
                    Index.dataList["01"] = data.rows;
                }
            });

            $gridList11.jqGrid('setFrozenColumns');

            $gridList11.jqGrid('setLabel', 0, '序号', 'rowNumberHeaderStyle');

            var $gridList12 = $("#gridList12");

            $gridList12.dataGridForJson({
                url: "/Purchase/MaterialPurchase/GetContractRegistrationsArchive",
                postData: conn1,
                height: $(window).height() - 240,
                colModel: [
                { label: '合同日期', name: 'CGHTRQ', width: 80, align: 'left', sortable: false },
                { label: '流向编码（隐藏）', name: 'CGLX', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '材料分类编码（隐藏）', name: 'CLFL', width: 80, align: 'center', sortable: false, hidden: true },
                { label: '材料分类', name: 'CLFLMC', width: 60, align: 'left', sortable: false },
                { label: '材料要求', name: 'CGCLPH', width: 100, align: 'left', sortable: false },
                { label: '材料规格(mm)', name: 'CGCLGG', width: 120, align: 'left', sortable: false },
                { label: '产地编码（隐藏）	', name: 'CGCD', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '产地', name: 'CGCDMC', width: 40, align: 'center', sortable: false },
                { label: '供应商编码（隐藏）', name: 'CGGHDW', width: 80, align: 'left', sortable: false, hidden: true },
                { label: '供应商', name: 'CGGHDWMC', width: 120, align: 'left', sortable: false },
                { label: '到站编码(隐藏)', name: 'CGDZ', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '到站', name: 'CGDZMC', width: 40, align: 'center', sortable: false },
                { label: '采购方式(隐藏)', name: 'CGCGFS', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '采购<br/>方式', name: 'CGCGFSMC', width: 40, align: 'left', sortable: false },
                { label: '采购分类(隐藏)', name: 'CGCGFL', width: 60, align: 'center', sortable: false, hidden: true },
                { label: '采购<br/>分类', name: 'CGCGFLMC', width: 40, align: 'left', sortable: false },
                { label: '分流编码隐藏()', name: 'CGCGFL', width: 60, align: 'center', sortable: false, hidden: true },
                { label: '分流', name: 'CGCGFLMC', width: 40, align: 'center', sortable: false },
                { label: '用途编码（隐藏）', name: 'CGYT', width: 60, align: 'right', sortable: false, hidden: true },
                { label: '用途', name: 'CGYTMC', width: 100, align: 'left', sortable: false },
                { label: '合同编号', name: 'CGHTBH', width: 120, align: 'left', sortable: false },
                { label: '订货<br/>数量', name: 'CGDHSL', width: 60, align: 'right', sortable: false },
                { label: '采购<br/>单价', name: 'CGCGDJ', width: 60, align: 'right', sortable: false, formatter: 'number' },
                { label: '到站<br/>单价', name: 'CGDZDJ', width: 60, align: 'right', sortable: false, formatter: 'number' },
                { label: '标准编号', name: 'CGCLBZBH', width: 100, align: 'left', sortable: false },
                { label: '特殊要求', name: 'CGCLTSYQ', width: 100, align: 'left', sortable: false },
                { label: '备注', name: 'CGBHSM', width: 120, align: 'left', sortable: false },
                { label: '维护<br/>状态', name: 'CGWHZT', width: 80, align: 'center', sortable: false },
                { label: '登记<br/>人员', name: 'CGDJRY', width: 60, align: 'center', sortable: false },
                { label: '登记<br/>日期', name: 'CGDJRQ', width: 60, align: 'center', sortable: false },
                { label: '登记<br/>时间', name: 'CGDJSJ', width: 60, align: 'center', sortable: false },
                { label: '发布<br/>人员', name: 'CGFBRY', width: 60, align: 'center', sortable: false },
                { label: '发布<br/>日期', name: 'CGFBRQ', width: 60, align: 'center', sortable: false },
                { label: '发布<br/>时间', name: 'CGFBSJ', width: 60, align: 'center', sortable: false }
                ],
                pager: "#gridPager12",
                sortname: 'UseUnit,CGHTRQ,CGHTBH,CGCLPH',
                sortorder: "asc,DESC,asc,asc",
                viewrecords: true,
                rownumWidth: 50,
                onSelectRow: function (rowId) {

                },
                loadComplete: function (data) {
                    Index.dataList["02"] = data.rows;
                }
            });

            $gridList12.jqGrid('setFrozenColumns');

            $gridList12.jqGrid('setLabel', 0, '序号', 'rowNumberHeaderStyle');
        },
        renderPrintData: function (c, data, colunmInfo, title) {
            c.empty();

            var rows = 16;

            var max = data.length;

            var item = { page: 1, maxPage: 1, title: title, unit: Index.curUnit, user: Index.curUserName, date: Index.curDate, time: Index.curTime, table: null };

            var maxPage = Math.ceil(max / rows);

            item.maxPage = maxPage;

            for (var i = 0; i < maxPage; i++) {
                var isFirst = true;

                var start = i * rows, end = (i + 1) * rows;

                end > max && (end = max);

                var table = $("<table>"), pageItem = $("<div>").addClass("page");

                item.page = i + 1;

                for (var j = start; j < end; j++) {
                    var cur = data[j];

                    isFirst && (function () {
                        var title = $("<tr>");

                        for (var idx in colunmInfo) {
                            $("<th>").html(colunmInfo[idx].caption).appendTo(title);
                        }

                        title.appendTo(table);

                        isFirst = false;
                    })();

                    !isFirst && (function () {
                        var row = $("<tr>");

                        for (var idx in colunmInfo) {
                            $("<td>").text(cur[colunmInfo[idx].name]).appendTo(row);
                        }

                        row.appendTo(table);
                    })();
                }

                item.table = "<table>{0}</table>".format(table.html());

                pageItem.html(Index.printItemTemplate.format(item)).appendTo(c);
            }
        }
    };
</script>


<div class="layout" id="layout" style="width: 100%;">
    <div class="tool_c">
        <div class="btn-group  input-width-80">
            <input name="ra1" id="ra11" type="radio" value="合同登记" /><label for="ra11">合同登记</label><br />
            <input name="ra1" id="ra12" type="radio" value="合同档案" /><label for="ra12">合同档案</label>
        </div>
        <div class="btn-group input-width-80 i1 i11 date_area">
            &nbsp;	合同日期
            <br />
            <input id="FAccountDate1" name="date" type="text" class="txt_common form-control" date-control />
        </div>
        <div class="btn-group input-width-140 i1 i12">
            &nbsp;	合同编号<br />
            <input id="SJDH1" name="" placeholder="" type="text" class="form-control required" />
        </div>
        <div class="btn-group input-width-105 i1 i13">
            &nbsp;	材料牌号<br />
            <input id="CLPH1" name="" placeholder="" type="text" class="form-control required" />
        </div>
        <div class="btn-group input-width-140 i1 i14">
            &nbsp;	材料规格<br />
            <input id="LBJH1" name="" placeholder="" type="text" class="form-control required" />
        </div>
        <div class="btn-group input-width-80 i1 i15">
            &nbsp;	产地<br />
            <select id="CGCD1" name="" class="form-control FHappenCompanyNO">
                <option value="">--请选择--</option>
            </select>
        </div>
        <div class="btn-group input-width-105 i1 i17">
            &nbsp;	供货单位<br />
            <select id="CGGHDW1" name="" class="form-control FHappenCompanyNO">
                <option value="">--请选择--</option>
            </select>
        </div>
        <div class="btn-group input-width-80 i1 i18">
            &nbsp;	到站<br />
            <select id="CGDZ1" name="" class="form-control FHappenCompanyNO">
                <option value="">--请选择--</option>
            </select>
        </div>
        <div class="btn-group input-width-105 i1 i19">
            &nbsp;采购方式<br />
            <select id="CGCGFS1" name="" class="form-control FHappenCompanyNO">
                <option value="">--请选择--</option>
            </select>
        </div>
        <div class="btn-group input-width-105 i1 i110">
            &nbsp;	采购分类<br />
            <select id="CGCGFL1" name="" class="form-control FHappenCompanyNO">
                <option value="">--请选择--</option>
            </select>
        </div>
        <div class="btn-group input-width-105 i1 i111">
            &nbsp;	分流<br />
            <select id="CGCGFLiu1" name="" class="form-control FHappenCompanyNO">
                <option value="">--请选择--</option>
            </select>
        </div>
        <div class="btn-group input-width-105 i1 i112">
            &nbsp;	用途<br />
            <select id="CGYT1" name="" class="form-control FHappenCompanyNO">
                <option value="">--请选择--</option>
            </select>
        </div>
        <div class="btn-group">
            <a id="btn_search1" class="btn btn-primary center-block"><span class="glyphicon glyphicon-search"></span>查询</a>
            <a class="btn btn-primary center-block" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span>&nbsp;刷新</a>
            <a id="butnInput1" class="btn btn-primary center-block i1 i116"><span class="glyphicon glyphicon-plus"></span>&nbsp;新增</a>
            <a id="butnDelete1" class="btn btn-primary center-block i1 i117"><span class="glyphicon glyphicon-trash"></span>&nbsp;删除</a>
            <a id="butnEdit1" class="btn btn-primary center-block i1 i118"><span class="glyphicon glyphicon-wrench"></span>&nbsp;修改</a>
            <a id="butnImport1" class="btn btn-primary center-block i1 i119"><span class="glyphicon glyphicon-import"></span>&nbsp;导入</a>
            <a id="butnPublish1" class="btn btn-primary center-block i1 i115"><span class="glyphicon glyphicon-edit"></span>&nbsp;发布</a>
            <a id="butnExport1" class="btn btn-primary center-block"><span class="glyphicon glyphicon-export"></span>&nbsp;导出</a>
        </div>
    </div>
    <div class="grid_list_1_c i1 i113" style="margin-top: 5px;">
        <table id="gridList11"></table>
        <div id="gridPager11"></div>
    </div>
    <div class="grid_list_1_c i1 i114" style="margin-top: 5px;">
        <table id="gridList12"></table>
        <div id="gridPager12"></div>
    </div>
</div>

